package com.cargohu.aishouyu.member.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 添加会员表参数
 *
 * @author aaron.wang
 * @since 2023-11-27
 */
@Data
@Schema(description = "添加会员表参数")
public class MemberAddDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "会员名")
    @Length(max = 64, message = "会员名长度超过限制")
    private String username;

    @Schema(description = "密码")
    @Length(max = 255, message = "密码长度超过限制")
    private String password;

    @Schema(description = "电话号码")
    @Length(max = 20, message = "电话号码长度超过限制")
    private String phone;

    @Schema(description = "头像")
    @Length(max = 255, message = "头像长度超过限制")
    private String avatar;

    @Schema(description = "昵称")
    @Length(max = 64, message = "昵称长度超过限制")
    private String nickname;

    @Schema(description = "性别 1:男 2:女")
    private Integer sex;

    @Schema(description = "生日")
    @Length(max = 32, message = "生日长度超过限制")
    private String birthday;

    @Schema(description = "身份证号")
    @Length(max = 32, message = "身份证号长度超过限制")
    private String idCard;

    @Schema(description = "真实姓名")
    @Length(max = 32, message = "真实姓名长度超过限制")
    private String realName;

    @Schema(description = "个性签名")
    @Length(max = 65535, message = "个性签名长度超过限制")
    private String signature;

    @Schema(description = "国家")
    @Length(max = 255, message = "国家长度超过限制")
    private String country;

    @Schema(description = "省")
    @Length(max = 255, message = "省长度超过限制")
    private String province;

    @Schema(description = "城市")
    @Length(max = 255, message = "城市长度超过限制")
    private String city;

    @Schema(description = "邮箱地址")
    @Length(max = 128, message = "邮箱地址长度超过限制")
    private String email;

    @Schema(description = "微信登录openId")
    @Length(max = 32, message = "微信登录openId长度超过限制")
    private String wxOpenid;

    @Schema(description = "小程序openId")
    @Length(max = 32, message = "小程序openId长度超过限制")
    private String miniOpenid;

    @Schema(description = "QQ openId")
    @Length(max = 32, message = "QQ openId长度超过限制")
    private String qqOpenid;

    @Schema(description = "锁定标记，1未锁定，9已锁定")
    @Length(max = 1, message = "锁定标记，1未锁定，9已锁定长度超过限制")
    private String lockFlag;

    @Schema(description = "删除标记，1未删除，0已删除")
    @Length(max = 1, message = "删除标记，1未删除，0已删除长度超过限制")
    private String delFlag;

}


